package com.cimpm.task.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.hby.common.annotation.entity.VerifyMultiRepetitionField;

import java.util.Date;

@TableName("task_task_record")
public class TaskRecord {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

	@VerifyMultiRepetitionField
	@TableField(value = "`index`")
	private Integer index;

	@TableField(value = "`user_id`")
	private Integer userId;

	@TableField(value = "`next_executer`")
	private Integer nextExecuter;

	@VerifyMultiRepetitionField
	@TableField(value = "`record_id`")
	private Integer recordId;

	@TableField(value = "`order_index`")
	private Integer orderIndex;

	@TableField(value = "`executer`")
	private Integer executer;

    @TableLogic
    @TableField(value = "`is_deleted`")
    private Date isDeleted;

    @Version
    @TableField(value = "`version`")
    private Integer version;

    public Integer getId() { return id; }

    public void setId(Integer id) { this.id = id; }

    public Integer getIndex() { return index; }

    public void setIndex(Integer index) { this.index = index; }

    public Integer getUserId() { return userId; }

    public void setUserId(Integer userId) { this.userId = userId; }

    public Integer getNextExecuter() { return nextExecuter; }

    public void setNextExecuter(Integer nextExcuter) { this.nextExecuter = nextExcuter; }

    public Integer getRecordId() { return recordId; }

    public void setRecordId(Integer recordId) { this.recordId = recordId; }

    public Integer getOrderIndex() { return orderIndex; }

    public void setOrderIndex(Integer orderIndex) { this.orderIndex = orderIndex; }

    public Integer getExecuter() { return executer; }

    public void setExecuter(Integer excuter) { this.executer = excuter; }

    public Date getIsDeleted() { return isDeleted; }

    public void setIsDeleted(Date isDeleted) { this.isDeleted = isDeleted; }

    public Integer getVersion() { return version; }

    public void setVersion(Integer version) { this.version = version; }

    @Override
    public String toString() {
    return "taskRecord{" +
            "id=" + id +
            ", index=" + index +
            ", userId=" + userId +
            ", nextExecuter=" + nextExecuter +
            ", recordId=" + recordId +
            ", orderIndex=" + orderIndex +
            ", executer=" + executer +
            ", isDeleted=" + isDeleted +
            ", version=" + version +
            '}';
    }

}
